<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Jedrzej\Pimpable\PimpableTrait;

class TaskLevel extends Model
{
    use HasFactory;
    use PimpableTrait;
    use SoftDeletes;

    /**
     * 默认排序
     */
    protected $defaultSortCriteria = ['id,desc'];

    /**
     * 可排序字段
     */
    protected $sortable = [
        'limit_num',

    ];

    /**
     * 可搜索字段
     */
    protected $searchable = [
        'task_name',
        'task_type',
        'limit_num',
        'is_show',
        'sort',
    ];

    /**
     * 可批量赋值字段
     */
    protected $fillable = [
        'task_name',
        'task_type',
        'limit_num',
        'is_show',
        'sort',
    ];


}
